namespace ReportLibrary.Cash.Receipt
{
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;
    using Telerik.Reporting;
    using Telerik.Reporting.Drawing;

    /// <summary>
    /// Summary description for Cash_ReceiptVoucher.
    /// </summary>
    public partial class Cash_ReceiptVoucher : Telerik.Reporting.Report
    {
        public Cash_ReceiptVoucher(int p_VoucherId)
        {
            /// <summary>
            /// Required for telerik Reporting designer support
            /// </summary>
            InitializeComponent();            
            //
            // TODO: Add any constructor code after InitializeComponent call
            //

            // TODO: This line of code loads data into the 'cash_ReceiptVoucherDataSet.Cash_ReceiptVoucherDataSetTable' table. You can move, or remove it, as needed.
            try
            {
                //this.DataSource = Business.Cash_ReceiptVoucherList.GetCash_ReceiptVoucherListBySearch(new System.Collections.Generic.List<string> { "ReceiptVoucherId" },
                //                        new System.Collections.Generic.List<string> { p_VoucherId.ToString()+";"+ p_VoucherId.ToString() },
                 //                       new System.Collections.Generic.List<string> { "int" });
                //this.DataSource = Business.ReportFactory.GetCashReceiptVoucherReport(p_VoucherId).ReportDataSource;
               
            }
            catch (System.Exception ex)
            {
                // An error has occurred while filling the data set. Please check the exception for more information.
                System.Diagnostics.Debug.WriteLine(ex.Message);
            }
        }
    }
}